package com.mindao.app.ued.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.mindao.app.common.spring.controller.BaseBaseController;

/**
/* 版权所有： 广州敏道科技有限公司
/*
/* 功能描述：
/*
/* 创 建 人：李国才
/* 创建时间：2016年7月19日 下午9:07:12 	
 **/
@Controller
@RequestMapping("/ued/mobilemindao")
public class MobileMindao extends BaseBaseController {
	//主页面
	@RequestMapping
	public String main( HttpServletRequest request,HttpServletResponse response,HttpSession session,Model rhs){
		return super.rtnDefault(request, response, session, rhs);
	}
	//敏道主页
	@RequestMapping
	public String hello( HttpServletRequest request,HttpServletResponse response,HttpSession session,Model rhs){
		return super.rtnDefault(request, response, session, rhs);
	}
	//微信UI
	@RequestMapping
	public String weui( HttpServletRequest request,HttpServletResponse response,HttpSession session,Model rhs){
		return super.rtnDefault(request, response, session, rhs);
	}
	//登录
	@RequestMapping
	public String login( HttpServletRequest request,HttpServletResponse response,HttpSession session,Model rhs){
		return super.rtnDefault(request, response, session, rhs);
	}
	//提交登录
	@RequestMapping(method=RequestMethod.POST)
	public String submitLogin( HttpServletRequest request,HttpServletResponse response,HttpSession session,Model rhs){
		String fwdMethod="hello";//将来需要在需要登录的页面发现没有登录后，把登录地址保存到Session后，然后跳转到登录页面。
		String account=getpara("account");
		session.setAttribute("account", account);
		return super.redirect(request, response, "submitLogin", fwdMethod );
	}
}
